﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp14
{
    class Anmial
    {
        public string Eat;
        private string name;

        public string Name {
            get { return this.name; }
            set { this.name = value; }
        }
        public Anmial() { 
        
        }

        public Anmial(string name) {
            this.Name = name;
        }
        public void Say() {
            Console.WriteLine("我是{0}，我还会吃",this.name);
        }
        public void Eating() {
            Console.WriteLine("我可以吃食物");
        }
    }
}
